#pragma once
#include "../stdafx.h"
#include "Tmp_Manager.h"

struct MODEL
{
    string name;
    inline int32 GetID(){ return id;}
    inline void SetID(int32 _id) {id=_id;}
private:
    int32 id;
};

class ModelManager:
    public Manager<MODEL>, public Component
{
public:
    ModelManager(void);
    ~ModelManager(void);

    void addedToObject();
    void AddModel(Message const &msg);
    void FindModel(Message const &msg);
    int32 FindModel(int32);
    static bool MyFunc(MODEL m,boost::any any);
    void Log();
};
